package com.oleg.bigidoc.beans;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@SuppressWarnings("serial")
@ManagedBean
@SessionScoped
public class NavigationBean implements Serializable {
	/**
	 * Redirect to login page.
	 * 
	 * @return Login page name.
	 */
	public String redirectToLogin() {
		return "/login.xhtml?faces-redirect=true";
	}

	/**
	 * Go to login page.
	 * 
	 * @return Login page name.
	 */
	public String toLogin() {
		return "/login.xhtml";
	}
	
	/**
	 * Redirect to register page
	 * @return register page
	 */
	public String redirectToRegistration(){
		return "/registration.xhtm?faces-redirect=true";
	}

	/**
	 * Redirect to info page.
	 * 
	 * @return Info page name.
	 */
	// public String redirectToInfo() {
	// return "/info.xhtml?faces-redirect=true";
	// }

	/**
	 * Go to info page.
	 * 
	 * @return Info page name.
	 */
	// public String toInfo() {
	// return "/info.xhtml";
	// }

	/**
	 * Redirect to welcome page.
	 * 
	 * @return Welcome page name.
	 */
	public String redirectToWelcome() {
		return "/pages/welcome.xhtml?faces-redirect=true";
	}

	/**
	 * Go to welcome page.
	 * 
	 * @return Welcome page name.
	 */
	public String toWelcome() {
		return "/pages/welcome.xhtml";
	}
}
